package com.example.demo;

import com.google.common.base.Charsets;

/**
 * Created by lei on 2017/5/20.
 */
public class SpringMvcConfiguration {

	public MyCommonsMultipartResolver multipartResolver(){
		MyCommonsMultipartResolver multipartResolver = new MyCommonsMultipartResolver();
		multipartResolver.setDefaultEncoding(Charsets.UTF_8.name());
		multipartResolver.setMaxUploadSize(10485760000L);
		multipartResolver.setMaxInMemorySize(40960);
		return multipartResolver;
	}
}
